#ifndef WF_MODIFYDELETEFREE_H
#define WF_MODIFYDELETEFREE_H

#include "pf_actioninterface.h"
#include "gui_export.h"

/**
 * This action class can handle user events to delete entities.
 *
 */
class GUI_EXPORT WF_ModifyDeleteFree : public PF_ActionInterface {
	Q_OBJECT
public:
    WF_ModifyDeleteFree(PF_Container& container,
                              PF_GraphicView& graphicView);
    ~WF_ModifyDeleteFree() {}

	static QAction* createGUIAction(LX_Define::ActionType /*type*/, QObject* /*parent*/);

    virtual void init(int status=0);
    virtual void trigger();
    virtual void mouseReleaseEvent(PF_MouseEvent* e);
    virtual void updateMouseButtonHints();

private:
    PF_Polyline* polyline;
    PF_Entity* e1;
    PF_Vector v1;
    PF_Entity* e2;
    PF_Vector v2;
};

#endif
